//
//  XMMaskPaintView.h
//  XiaoMiao
//
//  Created by 23 on 2018/2/24.
//  Copyright © 2018年 smallyou. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, XMMaskPaintViewType) {
    XMMaskPaintViewTypeMask             = 0,    //马赛克状态
    XMMaskPaintViewTypeEraser           = 1     //橡皮擦状态
};

@interface XMMaskPaintView : UIView

/**type*/
@property(nonatomic,assign) XMMaskPaintViewType type;

/**手指涂抹的路径*/
@property (nonatomic, assign) CGMutablePathRef path;

/**
 马赛克图片
 */
@property (nonatomic, strong) UIImage *image;
/**
 原图
 */
@property (nonatomic, strong) UIImage *surfaceImage;

- (void)backPath;
- (void)forwardPath;

@end
